﻿using System;
using System.Collections.Generic;
using Jayden.Dll.Web.Enums;
using Jayden.Dll.Web.HtmlControls.Descriptions;
using Jayden.Dll.Web.HtmlControls.Generics;

namespace Jayden.Dll.Web.HtmlControls
{
	public class Title : HtmlElement
	{
		public Title() : base(TitleDescription.Instance) { }
	}
	public class TitleDescription : HtmlElementDescription
	{
		public static readonly TitleDescription Instance = new TitleDescription();
		private TitleDescription() : base("title", HtmlVersion.Html4, true, true) { }
		public override Type ControlType { get { return typeof(Title); } }
		public override string Description { get { return "the document’s title or name."; } }
		public override IEnumerable<HtmlElementDescription> PermittedElements { get { yield break; } }
		public override IEnumerable<HtmlElementDescription> PermittedParents { get { yield return HeadDescription.Instance; } }
	}
}
